-------------------------------------------------------------------------------
Example: Talkthru Digital In-Digital Out (J8=Input, J9=Output)
Target:   ADSP-21364
Date:     May 2nd, 2007
Tools:    VisualDSP++ 4.5
Hardware: ADSP-21364 EZ-KIT LITE
-------------------------------------------------------------------------------

Audio Talk-through 

TalkThrough reads audio samples from the on-chip SPDIF receiver and it
passes the unmodified data through to the SPDIF transmitter.
 Each interrupt reads a single 32-bit sample (alternating left and right) using
A data channel of SPORT1 and immediately writes the same value to the A data channel 
of SPORT0 for transmit.All audio is transmitted in I2S mode.  An MCLK is derived
from the SPDIF input stream, as well as the bit clock and the frame sync.The SPDIF
Tx and SPORT0 recieve their bit clock and Frame sync from PCG A. SPDIF Tx recieves its
oversampling clock from PCG B. 
-------------------------------------------------------------------------------
Instructions: Connect the audio input into the SPDIF IN (must be a PCM input from say 
DVD/CD player etc). Download the executable to the EZ-KIT. The PCM output is available 
from SPDIF OUT. 
-------------------------------------------------------------------------------
Source Files contained in this directory:
main.c                 Calls initialization routines then waits for interrupts
configdai.c            Initializes the SRU & DAI pins
SPDIF RX-TX Talktrough SPORTs.dpj    VisualDSP Project File
-------------------------------------------------------------------------------
Dependencies contained in VisualDSP++ default include path:
def21364.h             Header with constants for the SHARC
SRU.h                  Macro to simplify programming the SRU & DAI pins
cdef21364.h            Header with constants for the SHARC            
signal.h               Header file to handle interrupts (C runtime)
*******************************************************************************
Analog Devices, Inc.
DSP Division
Three Technology Way
Norwood, MA 02062

(c) 2003 Analog Devices, Inc.  All rights reserved.
*******************************************************************************

